import request from '@/utils/request'

export function login(data) {
    return request({
        url: '/pc/login/login_by_username',
        method: 'post',
        formData: data
    })
}

export function getInfo() {
    return request({
        url: '/pc/login/current',
        method: 'post',
    })
}

export function logout() {
    return request({
        url: '/user/logout',
        method: 'post'
    })
}